import { Controller } from '@nestjs/common';
import { Crud, CrudController, Override, ParsedRequest, ParsedBody, CrudRequest } from '@nestjsx/crud';
import { ApiTags} from '@nestjs/swagger';
import { Feedback } from '../../entities/feedback.entities';
import { FeedbackService } from '../../services/feedback/feedback.service';

@Crud({
  model:{
    type:Feedback,
  },
  query:{
    join:{
      user:{
        exclude:[]
      }
    },
    exclude:["user_id"],
  },
  routes:{
    only:['getManyBase','createOneBase']
  }
})
@ApiTags('feedback')
@Controller('api/feedback')
export class FeedbackController {
  constructor(
    public service:FeedbackService
  ){}
}
